extends Talent
func init():
	name = "星辉石"

func get_info():
	return "奥拉星单位提升双攻双防双穿最大体力各20%"

func _connect():
	sys.main.connect("onBattleStart",self,"run")

func run():
	for i in sys.main.btChas:
		if (i.id.find("calx") != -1 || i.id == "cex___alx" || i.id == "cex___aoxilisi" || i.id == "cex___xxw") && i.team == 1:
			i.addBuff(Bf.new())


class Bf:
	extends Buff

	func _init():
		attInit()
		att.atkL = 0.2
		att.mgiAtkL = 0.2
		att.defL = 0.2
		att.mgiDefL = 0.2
		att.penL = 0.2
		att.mgiPenL = 0.2
		att.maxHpL = 0.2